package com.atguigu.gmall.product.client.impl;

import com.atguigu.gmall.model.product.BaseCategoryView;
import com.atguigu.gmall.model.product.SkuInfo;
import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.atguigu.gmall.product.client.ProductFeignClient;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @ author     ：廖传港
 * @ date       ：Created in 2020/12/25 21:14
 * @ description：熔断之后降级处理
 * @ modified By：
 * @ ersion:
 */
@Component
public class ProductFeignClientImpl implements ProductFeignClient {
    @Override
    public BaseCategoryView getBaseCategoryView(Long category3Id) {
        System.out.println("投降啦");
        return null;
    }

    @Override
    public SkuInfo getSkuInfo(Long skuId) {
        System.out.println("投降啦");
        return null;
    }

    @Override
    public BigDecimal getSkuPrice(Long skuId) {
        System.out.println("投降啦");
        return null;
    }

    @Override
    public List<SpuSaleAttr> getSpuSaleAttrAndChecked(Long spuId, Long skuId) {
        System.out.println("投降啦");
        return null;
    }

    @Override
    public Map getSaleAttrValuesBySpu(Long spuId) {
        System.out.println("投降啦");
        return null;
    }

    @Override
    public List<BaseCategoryView> getBaseCategoryViewList() {
        return null;
    }


}
